//
//  AandelCellView.m
//  Aandelen
//
//  Created by Jin Hu on 2010/08/05.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "AandeelCell.h"


@implementation AandeelCell
@synthesize percentage, change, indicator,price,logo,name ;
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(id)rid{
	if([super initWithStyle:style reuseIdentifier:rid]){
		self.textLabel.frame=CGRectMake(0, 0, 10, 40);
		//self.textLabel.bounds=CGRectMake(200, 0, 80, 40);
		change = [[[UILabel alloc] initWithFrame:CGRectMake(130, 5, 40, 15)] autorelease];
		change.font = [UIFont systemFontOfSize:10];
		//change.bounds = CGRectMake(0, 0, 40, 25);
		[self.contentView addSubview:change];
		percentage = [[[UILabel alloc] initWithFrame:CGRectMake(130, 25, 40, 15)] autorelease];
		percentage.font = [UIFont systemFontOfSize:10];
		//percentage.bounds = CGRectMake(0, 30, 40, 25);
		[self.contentView addSubview:percentage];
		
		price = [[[UILabel alloc] initWithFrame:CGRectMake(190, 1, 110, 38)] autorelease];
		price.font = [UIFont systemFontOfSize:30];
		//percentage.bounds = CGRectMake(0, 30, 40, 25);
		[self.contentView addSubview:price];
		
		name = [[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 120, 40)] autorelease];
		name.font = [UIFont systemFontOfSize:20];
		//percentage.bounds = CGRectMake(0, 30, 40, 25);
		[self.contentView addSubview:name];

		logo = [[[UIImageView  alloc] initWithFrame:CGRectMake(2, 2, 110, 36)] autorelease];
		[self.contentView addSubview:logo];
		indicator = [[[UIImageView  alloc] initWithFrame:CGRectMake(170, 10, 20, 20)] autorelease];
		[self.contentView addSubview:indicator];
	}
	return self;
}

- (void)dealloc {
    [super dealloc];
}


@end
